<template>
	<view>
		<view class="cu-card dynamic">
			<view class="cu-item shadow">
				<detail :detail="detail" :info="info"></detail>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad(option) {
			this.info = JSON.parse(option.params)
			uniCloud.callFunction({
				name: "Inquirejubao",
				data: {
					type: "id",
					_id: this.info._id
				},
				success: (res) => {
					this.detail = res.result.data[0]
					console.log(this.info);
					console.log(this.detail);
				},
				fail(err) {
					console.log(err);
				}
			})
		},
		data() {
			return {
				detail: "",
				info: ""
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>
